package com.example.hotelsystem.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="房间列表查询VO", description="")
public class RoomSearchVO implements Serializable {

    @ApiModelProperty(value = "请求当前页数")
    private Integer currentPage = 1;

    @ApiModelProperty(value = "入住时间")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @JsonFormat(pattern = "yyyyMMdd")
    private Date checkinTime;

    @ApiModelProperty(value = "退房时间")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @JsonFormat(pattern = "yyyyMMdd")
    private Date checkoutTime;

    @ApiModelProperty(value = "当前房间状态")
    private Integer status;

    @ApiModelProperty(value = "房间类型ID")
    private Long roomTypeId;

    @ApiModelProperty(value = "城市id")
    private Long cityId;

    @ApiModelProperty(value = "楼层ID")
    private Long floorId;

    @ApiModelProperty(value = "酒店名称ID")
    private Long hotelId;
}
